Skip to content

Conversation

@che-effe
Copy link

This PR will allow for creating any color using RGBW pixels and strips.
TODO:

  • make it configurable so that RGBW is not the default to minimize bandwidth usage
  • update tests

This is a WIP and I'm placing this PR mostly to communicate what was missing from a previous attempt at this work to get all colors working as expected and to save state of the work.

case PIXEL_COLOUR_BRG:
setColorOrderBRG();
break;
case PIXEL_COLOUR_RGBW:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajfisher I have made some protections within pixel.js to make sure that by default, we send an array with length of 3. We send 4 if rgbw colors are declared at instantiation. I'm going to work on adding similar protection here I think, to make sure all is good within the firmware.I wanted your feedback on this approach so far before I get too into it. Please let me know your thoughts on what I have in the PR to this point. I will also go back and make sure all tests pass within the next few days. Thanks!

break;
case PIXEL_COLOUR_RGBW:
isRGBW = true;
color_depth = 4;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajfisher I'm trying to make the value color_depth changable on the fly from 3 to 4. This doesn't seem to be working for me. Can you give me some guidance as to where I can change this value when switching to RGBW?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant